<?php
/**
 * Created by PhpStorm.
 * Auther:范俊成
 * Date: 2018/5/28
 * Time: 11:08
 */

namespace app\v2\controller;

class Business extends Base
{


    public function protocol()
    {

//        $arr = [
//            'project_name' => C('_BANK_PROJECT_NAME'),
//            'host' => C('_BANK_PROJECT_URL'),
//            'company' => C('_BANK_COMPANY_NAME'),
//
//        ];
        $arr = array();
        $url = 'http://kdw.m4bq80j.cn/index.php?s=/traffic/open/getProtocolPhone.html';
        $arr['list'] = json_decode(http_post($url));
        // http://api2.jietiaoshop.com/api/getBusiness
        $url ='http://kdw.m4bq80j.cn/index.php?s=/traffic/open/businessback';
        $business = json_decode(http_post($url),true);

        $arr['business'] = $business;
        if(empty($business['data'])) {
            return resultArray(array('error'=>$arr));
        }

        return resultArray(array('data'=>$arr));
    }





}
